home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.2 KB | 47 lines | [TEXT/GEOL] |
- Item 0132253 13-Jan-88 12:00
-
- From: V0344 Siemens Gammasonics, Henk Koopmans
-
- To: N0231 TRW, ESG, Donald Carlile, ASC
-
- cc: MACAPP$ MacApp Interest List
-
- Sub: Setting max Zoom window size
-
- Dear Don,
- In response to your wish list request of 18-Dec-87 for TWindow.fResizelimits
- to limit the maximum size of a window for the Zoombox. Something you should
- read is the information about a window's Standard state and User state in
- Inside Macintosh volume 4 pages 8 and 49-51. I implemented the maximum size
- my window could be zoomed to with the following; (Kudos to Chris Knepper from
- MACDTS for helping me get "a handle on it")
-
- PROCEDURE TPDocument.DoMakeWindows; OVERRIDE;
- TYPE
- pWStateData = ^WStateData;
- hWStateData = ^pWStateData;
- VAR
- maxRect: Rect;
- BEGIN
- aPWindow := fPView.MakeOwnWindow(TRUE); {TRUE for scrollable dialog}
-
- IF aPWindow <> NIL THEN
- BEGIN
- {Set maximum size window can be sized or zoomed.}
- .
- .
- .
- maxRect:= ...;
-
- hWStateData(DialogPeek(fPView.fDialogPtr)^.window.dataHandle)^^.stdState:=
- maxRect;
- END;
-
- END;
-
- Have fun!
-
- Edith Wickliff, Siemens Gammasonics
-
-
-